package com.design.pattern.template;

public class TemplateTest {
    public static void main(String[] args) {
        Tea tea = new Tea();
        Coffee coffee = new Coffee();

        System.out.println("----------tea-----------");
        tea.prepareRecipe();
        System.out.println("----------coffee-----------");
        coffee.prepareRecipe();
        System.out.println("----------tea not Condiments-----------");
        tea.setCondiments(false);
        tea.prepareRecipe();
    }
}